package com.mall.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 购物车信息对象 t_cart
 *
 * @author ruoyi
 * @date 2025-03-30
 */
@Data
@TableName(value = "t_cart")
@EqualsAndHashCode(callSuper = true)
public class TCart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;
    /**
     * "商品Id"
     */
    @Excel(name = "商品Id")
    private String productId;
    /**
     * "数量"
     */
    @Excel(name = "数量")
    private Long cartNum;
    /**
     * "秒杀活动Id"
     */
    @Excel(name = "秒杀活动Id")
    private String seckillId;
    /**
     * "拼团活动Id"
     */
    @Excel(name = "拼团活动Id")
    private String ptId;
    /**
     * "团长拼团Id"
     */
    @Excel(name = "团长拼团Id")
    private String pinkId;

    /**
     * "团长拼团Id"
     */
    @TableField(exist = false)
    private String productName;
    /**
     * "团长拼团Id"
     */
    @TableField(exist = false)
    private String productImage;

    /**
     * "价格"
     */
    @TableField(exist = false)
    private BigDecimal productPrice;


    /**
     * "vip价格"
     */
    @TableField(exist = false)
    private BigDecimal vipPrice;



    /**
     * "0-普通，1-秒杀，2拼团 3-积分  4 积分抽奖 "
     */
    @TableField(exist = false)
    private String   type;


}
